﻿@page
@model DotNetCoreStudy.Page.Pages.Employee.AddEmployeeModel
@using DotNetCoreStudy.Page.Models

    <form asp-action="Add" method="post">
        <div class="row form-group">
            <div class="col-md-2 offset-md-2">
                <label asp-for="employee.FirstName"></label>
            </div>
            <div class="col-md-6">
                <input class="form-control" asp-for="employee.FirstName" />
            </div>
        </div>
        <div class="row form-group">
            <div class="col-md-2 offset-md-2">
                <label asp-for="employee.LastName"></label>
            </div>
            <div class="col-md-6">
                <input class="form-control" asp-for="employee.LastName" />
            </div>
        </div>
        <div class="row form-group">
            <div class="col-md-2 offset-md-2">
                <label asp-for="employee.Gender"></label>
            </div>
            <div class="col-md-6">
                <select class="form-control" asp-for="employee.Gender" asp-items="Html.GetEnumSelectList<EnumGender>()"></select>
            </div>
        </div>
        <div class="row">
            <div class="col-md-2 offset-md-4">
                <input type="submit" class="btn btn-primary" name="name" value="Submit" />
            </div>
        </div>
    </form>
